import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
	state: {
		isLogin: false,
		userInfo: {},
		// 页面标题
		navigationBarTitle: ''
	},
	mutations: {
		login(state) {
			state.isLogin = true
		},
		logout(state) {
			state.isLogin = false
		},
		// 设置页面标题
		setNavigationBarTitle(state, title) {
			state.navigationBarTitle = title
		}
	},
	actions: {
		
	}
})
export default store